import { BaseEntity } from '@cool-midway/core';
import { Column, Index, Entity } from 'typeorm';
/** doupiaopiao模块-提现表 */

@Entity('doupiaopiao_withdraw')
export class DoupiaopiaoWithdrawEntity extends BaseEntity {
  @Column({ comment: '用户Id' })
  userId: string;

  @Column({ comment: '订单号', nullable: true })
  orderNo: string;

  @Column({ comment: '支付宝账号' })
  zfbCount: string;

  @Column({ comment: '提现金额' })
  amount: number;

  @Column({ comment: '提现之前的金额' })
  totalMoney: number;

  @Column({ comment: '手续费' })
  serviceCharge: number;

  @Column({ comment: '0 用户提现 1 供应商提现' })
  type: number;

  @Column({
    comment: '提现是否成功 0 提现失败 1 提现中 2 提现成功',
  })
  state: number;

  @Column({
    comment: '1 微信 2 支付宝 3 银行卡',
  })
  withdrawType: number;
}
